package com.hafu.view.inventory;



import java.awt.event.*;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.sql.SQLException;

/**
 * @Author:xiaohai 2072158919@qq.com 海航源
 * @Date: 2024/11/1  下午7:06
 * @Version 1.0
 * @description
 */
public class InventoryFrm extends JFrame{

    public InventoryFrm() {
        initComponents();
    }

    private void button1(ActionEvent e) throws SQLException {
        // TODO add your code here
        QueryinventoryFrm queryinventoryFrm = new QueryinventoryFrm();
        queryinventoryFrm.setVisible(true);
    }

    private void button1MouseClicked(MouseEvent e) {
        // TODO add your code here
    }



    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents  @formatter:off
        button1 = new JButton();

        //======== this ========
        setTitle("\u4e3b\u754c\u9762");
        var contentPane = getContentPane();

        //---- button1 ----
        button1.setText("\u67e5\u8be2\u5e93\u5b58");
        button1.addActionListener(e -> {try {
button1(e);} catch (SQLException ex) {
    throw new RuntimeException(ex);
}});
        button1.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseClicked(MouseEvent e) {
                button1MouseClicked(e);
            }
        });

        GroupLayout contentPaneLayout = new GroupLayout(contentPane);
        contentPane.setLayout(contentPaneLayout);
        contentPaneLayout.setHorizontalGroup(
            contentPaneLayout.createParallelGroup()
                .addGroup(contentPaneLayout.createSequentialGroup()
                    .addGap(61, 61, 61)
                    .addComponent(button1)
                    .addContainerGap(516, Short.MAX_VALUE))
        );
        contentPaneLayout.setVerticalGroup(
            contentPaneLayout.createParallelGroup()
                .addGroup(contentPaneLayout.createSequentialGroup()
                    .addGap(39, 39, 39)
                    .addComponent(button1)
                    .addContainerGap(276, Short.MAX_VALUE))
        );
        pack();
        setLocationRelativeTo(getOwner());
        // JFormDesigner - End of component initialization  //GEN-END:initComponents  @formatter:on
    }

    // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables  @formatter:off
    private JButton button1;
    // JFormDesigner - End of variables declaration  //GEN-END:variables  @formatter:on
}
